package com.starsoft.frame.base.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * BaseJobLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_job_log")
public class BaseJobLog implements java.io.Serializable {

	// Fields

	private Integer id;
	private String jobCode;
	private Timestamp startTime;
	private Timestamp endTime;
	private String status;
	private String desp;

	// Constructors

	/** default constructor */
	public BaseJobLog() {
	}

	/** full constructor */
	public BaseJobLog(String jobCode, Timestamp startTime, Timestamp endTime, String status, String desp) {
		this.jobCode = jobCode;
		this.startTime = startTime;
		this.endTime = endTime;
		this.status = status;
		this.desp = desp;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "jobCode", length = 50)
	public String getJobCode() {
		return this.jobCode;
	}

	public void setJobCode(String jobCode) {
		this.jobCode = jobCode;
	}

	@Column(name = "startTime", length = 19)
	public Timestamp getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	@Column(name = "endTime", length = 19)
	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	@Column(name = "status", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "desp", length = 100)
	public String getDesp() {
		return this.desp;
	}

	public void setDesp(String desp) {
		this.desp = desp;
	}

}